<?php
/**
 * @version SVN: $Id: builder.php 469 2011-07-29 19:03:30Z elkuku $
 * @package    Hello
 * @subpackage Views
 * @author     Tuan {@link vinawebfree.com}
 * @author     Created on 20-Sep-2011
 * @license    GNU/GPL
 */

//-- No direct access
defined('_JEXEC') || die('=;)');

jimport('joomla.application.component.view');

/**
 * HTML View class for the Hello Component.
 *
 * @package    Hello
 */
class HelloViewHello extends JView
{
    /**
     * Hello view display method.
     *
     * @param string $tpl The name of the template file to parse;
     *
     * @return void
     */
    public function display($tpl = null)
    {
        $model =& $this->getModel();
        $greeting_model = $model->getGreeting();
        $greeting_view = 'Hello World (view) !';

        $this->assignRef('greeting_model', $greeting_model);
        $this->assignRef('greeting_view', $greeting_view);

        parent::display($tpl);
    }//function
}//class
